﻿<bc:SLBC x:Class="SLS.Presentation.DocumentCenter"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:bc="clr-namespace:SLS.Base;assembly=CLSBase"
                  xmlns:exc="clr-namespace:SLS.Controls;assembly=CLSControls"
                  xmlns:local="clr-namespace:SLS.Presentation"
                  xmlns:nvp="clr-namespace:Stema.Controls;assembly=NavigationPane"
                  ToolTip="DocumentCenter"
                  Name="Container"
                  xmlns:CinchV2="clr-namespace:Cinch;assembly=Cinch.WPF"
                  xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
                  meffed:ViewModelLocator.ViewModel="DocumentCenterViewModel"
                  >
    <bc:SLBC.Resources>
        <DataTemplate DataType="{x:Type CinchV2:WorkspaceData}">
            <AdornerDecorator>
                <Border HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        CinchV2:NavProps.ViewCreator="{Binding}" />
            </AdornerDecorator>
        </DataTemplate>
    </bc:SLBC.Resources>
    <DockPanel VerticalAlignment="Stretch"
               HorizontalAlignment="Stretch"
               LastChildFill="True">  
        <StackPanel DockPanel.Dock="Top">
            <Image Source="/GeneralGUI;component/Resources/Images/32x32/lansunstudio.png"
                   Width="40"></Image>
            <TextBlock FontWeight="Bold">欢迎来到 LanSun 工作室。快乐的工作来自于你无私的奉献。</TextBlock> 
        </StackPanel>
        <exc:ExTabControl x:Name="TAB_MAIN"
                          ItemsSource="{Binding Documents}"
                          ViewDataSet="{Binding ElementName=Container, Path=ViewDataSet}"
                          TabStripPlacement="Left"
                          CinchV2:NavProps.ShouldHideHostWhenNoItems="true"
                          ItemContainerStyle="{DynamicResource TabItemStyleVerticalTabs}"
                          Style="{DynamicResource TabControlStyleVerticalTabs}"
                          IsSynchronizedWithCurrentItem="True"
                          DisplayMemberPath="DisplayText" Height="71">
            <exc:ExTabControl.ContextMenu>
                <ContextMenu IsOpen="{Binding ShowContextMenu, Mode=OneWay}">
                    <Menu x:Name="menu"
                          Margin="0,0,0,0"
                          Height="Auto"
                          Foreground="Black"
                          ItemContainerStyle="{DynamicResource ContextMenuItemStyle}"
                          ItemsSource="{Binding MainWindowOptions}"
                          BorderBrush="Transparent"
                          VerticalAlignment="Top"
                          Background="Transparent" />
                </ContextMenu>
            </exc:ExTabControl.ContextMenu>
        </exc:ExTabControl>
    </DockPanel>
</bc:SLBC>
